package com.water.locationservice.entites;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.json.JSONObject;

/**
 * @author 汪胜彬
 * @version 1.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> extends JSONObject {
    private Integer code;
    private String  message;
    private T data;

    public CommonResult(Integer code, String message)
    {
        this(code,message,null);
    }
}


